package com.ruoyi.syf.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.syf.domain.RiskCheckRecord;
import com.ruoyi.syf.domain.RiskCheckTask;
import com.ruoyi.syf.domain.vo.RiskCheckVo;

import java.util.Date;
import java.util.List;

/**
 * 排查记录Service接口
 *
 * @author yr
 * @date 2024-07-31
 */
public interface IRiskCheckRecordService extends IService<RiskCheckRecord> {

    List<RiskCheckVo> list(RiskCheckVo vo);

    RiskCheckVo getInfo(Long id);

    /**
     * 定时任务信息排查记录
     */
    void taskSave(RiskCheckTask task) throws IllegalAccessException;

    /**
     * 生成往期任务
     */
    void savePreviousPeriods(RiskCheckTask task) throws IllegalAccessException;

    /**
     * 手动生成排查任务
     */
    boolean mySave(RiskCheckVo vo);

    /**
     * 修改
     */
    boolean myUpdate(RiskCheckVo vo) throws IllegalAccessException;

    /**
     * 排查
     */
    boolean check(RiskCheckVo vo) throws IllegalAccessException;

    /**
     * 无隐患
     */
    boolean normal(RiskCheckVo vo) throws IllegalAccessException;

    /**
     * 回退
     */
    boolean backById(Long id) throws IllegalAccessException;

    /**
     * 隐患确认
     */
    boolean confirmById(Long id) throws IllegalAccessException;

    /**
     * 不采纳
     */
    boolean noAdoptionById(Long id) throws IllegalAccessException;

    /**
     * 转派
     */
    boolean forwardById(RiskCheckVo vo) throws IllegalAccessException;

    /**
     * 删除
     */
    boolean deleteByIds(Long[] ids);

    /**
     * 根据任务id查询最新的排查时间
     */
    Date getBeginCheckTimeByTaskId(Long taskId);

}
